import { _decorator, Component, v3 } from 'cc';
import { CocosTools } from '../CocosTools';
const { ccclass, property, executeInEditMode, menu } = _decorator;

const _v30 = v3();

@ccclass('AlignLocalPositionToInteger')
@menu('_mygame/AlignLocalPositionToInteger(对齐到整数位置)')
@executeInEditMode
export class AlignLocalPositionToInteger extends Component {

    onLoad() {
        CocosTools.alignLocalPositionToIntegerRecursive(this.node);
        let com = this.getComponent(AlignLocalPositionToInteger);
        com.destroy();
    }

}


